﻿#region Using statements
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion

namespace Rectangular.Model.Entities
{
    public class Bullet : Sprite
    {
        #region Members
        /* The texture of the bullet */
        public static new Texture2D Texture;
        #endregion

        #region Constructors
        /// <summary>
        /// Constructs a new bullet
        /// </summary>
        public Bullet()
        {
            Color = Color.White;
            MovingSpeed = 1000;
            Height = 16;
            Width = 16;
        }
        #endregion

        #region Methods
        /// <summary>
        /// Draws the bullet
        /// </summary>
        /// <param name="spriteBatch"></param>
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (Texture != null && Visible == true)
            {
                spriteBatch.Draw(Texture, Position, Color);
            }
        }
        #endregion
    }
}
